package com.gintama;

import com.gintama.proxy.Calculator;
import com.gintama.proxy.CalculatorImpl;
import com.gintama.proxy.ProxyFactory;
import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.Bean;

public class ProxyDemo {

    @Test
    public void test() {
        ProxyFactory proxyFactory = new ProxyFactory(new CalculatorImpl());
        Calculator proxy = (Calculator) proxyFactory.getProxy();
        proxy.add(1,2);
    }

    @Test
    public void test1() {

    }
}
